package com.codepilot.server.controller;

import com.codepilot.server.model.vo.StatsVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.codepilot.server.model.vo.CommonResult;
import com.codepilot.server.service.StatsService;
import io.swagger.annotations.Api;

@RestController
@RequestMapping("/api/stats")
@Api(tags = "统计信息接口")
public class StatsController {

    @Autowired
    private StatsService statsService;

    @GetMapping("")
    @ApiOperation("获取用户统计信息")
    public CommonResult<StatsVO> getStats() {
        return statsService.getStats();
    }

}
